package com.yt.lxh.dto.product;

import com.yt.lxh.model.product.TasteAttr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel(description = "新增口味 + 口味属性")
public class SaveTasteDTO {
    /**
     * 口味名称
     */
    @ApiModelProperty(value = "口味名称", required = true)
    @NotBlank(message = "口味名称不能为空")
    private String tasteName;

    /**
     * 口味属性列表
     */
    @ApiModelProperty(value = "口味属性列表")
    private List<TasteAttr> tasteAttrs;
}
